<?php

/*
Process Delete Shop (admin_delete_shop.pro.php)
*/

$rank_check = "7";
include "../global.inc.php";

$getShop = fetch("SELECT * FROM official_shops2 WHERE game = '$game' AND id = '$delete_shop'");

if (!$getShop[id])
{
	die(header(error("admin_delete_shop.php?game=$game", "That shop does not exsist.")));
}
else
{
	mysql_query("DELETE FROM official_shops2 WHERE id = '$getShop[id]' AND game = '$game'");
	mysql_query("DELETE FROM shop_items2 WHERE sell_in = '$getShop[id]' AND game = '$game'");
	
	die(header(error("admin_delete_shop.php?game=$game", "$getclub[name] owned by $getUser[username] has been deleted.")));
}

?>
